package com.waves.design.singleton;

/**
 * 饿汉模式2 静态代码块模式
 */
public class Singleton02 {

    private static Singleton02 singleton02;


    static {
        singleton02 = new Singleton02();
    }

    private static Singleton02 getInstance() {
        return singleton02;
    }
}
